package genstream

/**
 * Created by IntelliJ IDEA.
 * User: zslajchrt
 * Date: 17.4.11
 * Time: 18:10
 * To change this template use File | Settings | File Templates.
 */

class InputResourceDecorator(decorated: InputResource) extends InputResource {
  def openIterator(context: StreamingContext) = decorated.openIterator(context)
}

class InputStreamIteratorDecorator(decorated: InputStreamIterator) extends InputStreamIterator {
  def close() = decorated.close

  def next() = decorated.next
}

class InputStreamHolderDecorator(decorated: InputStreamHolder) extends InputStreamHolder {
  def getInputStream() = decorated.getInputStream
}